import './config'
import Vue from 'vue'
import App from './App.vue'
import Storage from 'vue-ls'
import router from './router'
import store from './store'
import Antd from 'ant-design-vue'
import { message } from 'ant-design-vue'
import 'ant-design-vue/dist/antd.less'

import { VueAxios } from "@/utils/request"
import config from '@/defaultSettings'
import vueBus from '@/utils/vueBus'

import {
  ACCESS_TOKEN,
} from "@/store/mutationTypes"



Vue.config.$message = message
Vue.config.productionTip = false

Vue.use(Antd)
Vue.use(Storage, config.storageOptions)
Vue.use(VueAxios,router)
Vue.use(vueBus);

new Vue({
  router,
  store,
  mounted() {
    store.commit("SET_TOKEN",Vue.ls.get(ACCESS_TOKEN))
  },
  render: h => h(App)
}).$mount('#app')
